package com.by.mapper;

import com.by.bean.ProductCategory;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * 根据pid查询最大编码
     * @param pid
     * @return
     */
    String queryMaxCode(int pid);

    /**
     * 根据类别查询编码
     * @param id
     * @return
     */
    String queryCode(int id);
}
